﻿using System.Collections.Generic;
using System.Threading.Tasks;
using YNTK.Common.Filter;
using YNTK.System.Entitys.Dto.Common;
using YNTK.System.Entitys.Dto.Menu;
using YNTK.System.Entitys.Menu;

namespace YNTK.System.Interfaces.Permission
{
    /// <summary>
    /// 菜单服务
    /// </summary>
    public interface IMenuService
    {
        /// <summary>
        /// 获取菜单管理权限(按钮)数据
        /// </summary>
        /// <returns></returns>
        TkResult<List<EnumListDto>> GetAuthorityList();

        /// <summary>
        /// 获取菜单树结构数据
        /// </summary>
        /// <param name="query">查询菜单请求模型</param>
        /// <returns></returns>
        Task<TkResult<List<MenuTreeDto>>> GetTree(QueryMenuFilterRequestModel query);

        /// <summary>
        /// 根据菜单id集合获取菜单数据
        /// </summary>
        /// <param name="ids">菜单id集合</param>
        /// <returns></returns>
        Task<List<MenuEntity>> GetListAsync(List<string> ids);
    }
}
